package com.gooddare.controller 
{
	import org.puremvc.as3.interfaces.IFacade;
	import org.puremvc.as3.patterns.facade.Facade;
	/**
	 * ...
	 * @author Lyleff
	 */
	public class ApplicationFacade extends Facade implements IFacade
	{
		public static const EVENT_APP_STARTUP:String = "appStartupEvent";
		
		public static const EVENT_APP_QUITSTAGE_CLICK:String = "appQuitStageClickEvent";
		public static const EVENT_APP_MAINMENU_CLICK:String = "appMenuMainClikcEvent";
		public static const EVENT_APP_HOMEPAGE_SHOW:String = "appHomepageShowEvent";
		
		public static const EVENT_DATA_APPLY_GET_INFO:String = "appDataApplyGetInfoEvent";
		public static const EVENT_DATA_HOMEPAGE_GET_INFO:String = "appDataHomePageGetInfoEvent";
		public static const EVENT_DATA_HOMEPIC_POST:String = "appDataHomePicPostEvent";
		public static const EVENT_APP_PHOTOPAGE_GET_INFO:String = "appDataPhotoPageGetInfoEvent";
		public static const EVENT_APP_PHOTO_DISPLAY_GET_INDEX:String = "appPhotoDisplayGetIndexEvent";
		override protected function initializeController():void {
			super.initializeController();
			registerCommand(EVENT_APP_STARTUP, AppStartupCommand);
		}
		public static function getInstance():ApplicationFacade {
			if (instance == null) instance = new ApplicationFacade();
			return instance as ApplicationFacade;
		}
	}

}